package Demo2;


import Demo1.Animal;//继承父类

public class Dog extends Animal {


    //定义方法
    public void bark(){
        System.out.println(name  + "汪汪汪....");
    }

}
